package com.grandtech.insurance.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author 
 * 客户地块信息表
 */
public class DbKhdkxx implements Serializable {
    /**
     * 主键id
     */
    private Long fid;
  //  private Long id;
    private Long objectid;

    /**
     * 区划代码
     */
    private String qhdm;

    /**
     * 区划名称
     */
    private String qhmc;

    /**
     * 种养类型（01种植02养殖）
     */
    private String zytype;

    /**
     * 地块编码
     */
    private String dkbm;

    /**
     * 面积
     */
    private BigDecimal mj;

    /**
     * 地块名称
     */
    private String dkmc;

    /**
     * 年份
     */
    private String nf;

    /**
     * 客户姓名
     */
    private String name;

    /**
     * 身份证号
     */
    private String idcode;

    /**
     * 项目编码
     */
    private String xmbm;

    /**
     * X坐标
     */
    private String xyCoordinate;



    /**
     * 省级区划
     */
    private String provincecode;

    /**
     * 市级区划
     */
    private String citycode;

    /**
     * 县区级区划
     */
    private String countycode;

    /**
     * 乡镇级区划
     */
    private String towncode;

    /**
     * 空间信息
     */
    private Object shape;
    private String shape1;
    private String shapere;

    private int referenceCount;

    private String farmName;

    private String coordinate;

    private String xnzt;

    public String getXnzt() {
        return xnzt;
    }

    public void setXnzt(String xnzt) {
        this.xnzt = xnzt;
    }

    public String getCoordinate() {
        return coordinate;
    }

    public void setCoordinate(String coordinate) {
        this.coordinate = coordinate;
    }

    public Long getObjectid() {
        return objectid;
    }

    public void setObjectid(Long objectid) {
        this.objectid = objectid;
    }

    public Long getFid() {
        return fid;
    }

    public void setFid(Long fid) {
        this.fid = fid;
    }

    public int getReferenceCount() {
        return referenceCount;
    }

    public void setReferenceCount(int referenceCount) {
        this.referenceCount = referenceCount;
    }

    public String getFarmName() {
        return farmName;
    }

    public void setFarmName(String farmName) {
        this.farmName = farmName;
    }

    public String getShapere() {
        return shapere;
    }

    public void setShapere(String shapere) {
        this.shapere = shapere;
    }

    private BigDecimal zmj;
    private int dksl;
    private List dkbms;

    private String szzb;

    private Date modified_time;

    public String getSzzb() {
        return szzb;
    }

    public void setSzzb(String szzb) {
        this.szzb = szzb;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    private Date createTime;

    public void setXyCoordinate(String xyCoordinate) {
        this.xyCoordinate = xyCoordinate;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getShape1() {
        return shape1;
    }

    public void setShape1(String shape1) {
        this.shape1 = shape1;
    }

    public List getDkbms() {
        return dkbms;
    }

    public void setDkbms(List dkbms) {
        this.dkbms = dkbms;
    }

    public BigDecimal getZmj() {
        return zmj;
    }

    public void setZmj(BigDecimal zmj) {
        this.zmj = zmj;
    }

    public int getDksl() {
        return dksl;
    }

    public void setDksl(int dksl) {
        this.dksl = dksl;
    }

    private static final long serialVersionUID = 1L;


    public String getQhdm() {
        return qhdm;
    }

    public void setQhdm(String qhdm) {
        this.qhdm = qhdm;
    }

    public String getQhmc() {
        return qhmc;
    }

    public void setQhmc(String qhmc) {
        this.qhmc = qhmc;
    }

    public String getZytype() {
        return zytype;
    }

    public void setZytype(String zytype) {
        this.zytype = zytype;
    }

    public String getDkbm() {
        return dkbm;
    }

    public void setDkbm(String dkbm) {
        this.dkbm = dkbm;
    }

    public BigDecimal getMj() {
        return mj;
    }

    public void setMj(BigDecimal mj) {
        this.mj = mj;
    }

    public String getDkmc() {
        return dkmc;
    }

    public void setDkmc(String dkmc) {
        this.dkmc = dkmc;
    }

    public String getNf() {
        return nf;
    }

    public void setNf(String nf) {
        this.nf = nf;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }

    public String getXmbm() {
        return xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    public String getXyCoordinate() {
        return xyCoordinate;
    }

    public String getProvincecode() {
        return provincecode;
    }

    public void setProvincecode(String provincecode) {
        this.provincecode = provincecode;
    }

    public String getCitycode() {
        return citycode;
    }

    public void setCitycode(String citycode) {
        this.citycode = citycode;
    }

    public String getCountycode() {
        return countycode;
    }

    public void setCountycode(String countycode) {
        this.countycode = countycode;
    }

    public String getTowncode() {
        return towncode;
    }

    public void setTowncode(String towncode) {
        this.towncode = towncode;
    }

    public Object getShape() {
        return shape;
    }

    public void setShape(Object shape) {
        this.shape = shape;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbKhdkxx other = (DbKhdkxx) that;
        return (this.getQhdm() == null ? other.getQhdm() == null : this.getQhdm().equals(other.getQhdm()))
            && (this.getQhmc() == null ? other.getQhmc() == null : this.getQhmc().equals(other.getQhmc()))
            && (this.getZytype() == null ? other.getZytype() == null : this.getZytype().equals(other.getZytype()))
            && (this.getDkbm() == null ? other.getDkbm() == null : this.getDkbm().equals(other.getDkbm()))
            && (this.getMj() == null ? other.getMj() == null : this.getMj().equals(other.getMj()))
            && (this.getDkmc() == null ? other.getDkmc() == null : this.getDkmc().equals(other.getDkmc()))
            && (this.getNf() == null ? other.getNf() == null : this.getNf().equals(other.getNf()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getIdcode() == null ? other.getIdcode() == null : this.getIdcode().equals(other.getIdcode()))
            && (this.getXmbm() == null ? other.getXmbm() == null : this.getXmbm().equals(other.getXmbm()))
           && (this.getProvincecode() == null ? other.getProvincecode() == null : this.getProvincecode().equals(other.getProvincecode()))
            && (this.getCitycode() == null ? other.getCitycode() == null : this.getCitycode().equals(other.getCitycode()))
            && (this.getCountycode() == null ? other.getCountycode() == null : this.getCountycode().equals(other.getCountycode()))
            && (this.getTowncode() == null ? other.getTowncode() == null : this.getTowncode().equals(other.getTowncode()))
            && (this.getShape() == null ? other.getShape() == null : this.getShape().equals(other.getShape()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getQhdm() == null) ? 0 : getQhdm().hashCode());
        result = prime * result + ((getQhmc() == null) ? 0 : getQhmc().hashCode());
        result = prime * result + ((getZytype() == null) ? 0 : getZytype().hashCode());
        result = prime * result + ((getDkbm() == null) ? 0 : getDkbm().hashCode());
        result = prime * result + ((getMj() == null) ? 0 : getMj().hashCode());
        result = prime * result + ((getDkmc() == null) ? 0 : getDkmc().hashCode());
        result = prime * result + ((getNf() == null) ? 0 : getNf().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getIdcode() == null) ? 0 : getIdcode().hashCode());
        result = prime * result + ((getXmbm() == null) ? 0 : getXmbm().hashCode());
        result = prime * result + ((getProvincecode() == null) ? 0 : getProvincecode().hashCode());
        result = prime * result + ((getCitycode() == null) ? 0 : getCitycode().hashCode());
        result = prime * result + ((getCountycode() == null) ? 0 : getCountycode().hashCode());
        result = prime * result + ((getTowncode() == null) ? 0 : getTowncode().hashCode());
        result = prime * result + ((getShape() == null) ? 0 : getShape().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", qhdm=").append(qhdm);
        sb.append(", qhmc=").append(qhmc);
        sb.append(", zytype=").append(zytype);
        sb.append(", dkbm=").append(dkbm);
        sb.append(", mj=").append(mj);
        sb.append(", dkmc=").append(dkmc);
        sb.append(", nf=").append(nf);
        sb.append(", name=").append(name);
        sb.append(", idcode=").append(idcode);
        sb.append(", xmbm=").append(xmbm);

        sb.append(", provincecode=").append(provincecode);
        sb.append(", citycode=").append(citycode);
        sb.append(", countycode=").append(countycode);
        sb.append(", towncode=").append(towncode);
        sb.append(", shape=").append(shape);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}